package com.xyc.petmallsystem.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Joel
 * @date 2021/12/23
 */

@RestController
@RequestMapping("/code")
public class CodeController {

    @GetMapping("/code/{token}")
    public void getToken(@PathVariable Integer token) {
        System.out.println("验证码为:" + token);
    }
}
